<?php $baseUrl = $this->baseUrl(); ?>
<table>
    <thead>
        <tr>
            <th scope="col">Nome</th>
            <th scope="col">Cadastro</th>
            <th scope="col">Usuário</th>
            <th scope="col">Situação</th>
        </tr>
    </thead>

    <tbody>
        <?php
        $i = 0;
        foreach ($this->rowSetTarefas as $rowTarefa) :
            $class = 'class="situacao_' . strtoupper($rowTarefa->cs_situacao) .'"';
        ?>
        <tr <?php echo $class; ?>>
            <td>
                <a href="<?php echo $baseUrl; ?>/tarefa/tarefa/visualizar/id/<?php echo $rowTarefa->id_tarefa; ?>">
                <?php echo $rowTarefa->st_nome; ?>
                </a>
            </td>
            <td><?php echo $this->dateFormat($rowTarefa->dt_cadastro); ?></td>
            <td><?php echo $this->aUsuarios[$rowTarefa->fk_usuario]; ?></td>
            <td><?php echo $this->aSituacao[$rowTarefa->cs_situacao]; ?></td>
        </tr>
        <?php endforeach; ?>
    </tbody>
</table>
